import request from '@/utils/request'

// 获取学分详情
export function getStudentCredit(data) {
  return request({
    url: 'score/selheji.zepc',
    method: 'post',
    transformRequest: [function() {
      return JSON.stringify(data)
    }],
    data
  })
}

// 获取学分列表
export function getCreditList(data) {
  return request({
    url: 'score/sel_stuUser.zepc',
    method: 'post',
    data
  })
}

// 获取学生个人学分列表
export function getStudentCreditCount(user_id) {
  return request({
    url: 'score/firstPage.zepc',
    method: 'post',
    data: { user_id }
  })
}
